<?php

namespace App\Contracts\Repositories\Quiz;

interface OptionRepository
{
    /**
     * @param array $data
     * @return mixed
     */
    public function create(array $data);

    public function find($id, array $columns = ['*']);

    public function findByQuizId($quizId, array $columns = ['*']);

    public function update($id, array $data);

    public function delete($id);

    public function deleteByQuizId($quizId);

    public function findTextByQuizId($quizId, $text);

    public function findMAXSortByQuizId($quizId);

}